package model;

import java.text.DateFormat;
import java.text.DecimalFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;


public class Order {
	private int orderId;
	private int ssn;
	private Date date;
	private Date time;
	private Double totalPrice;

	//private DecimalFormat priceFormat; //priceFormat = new DecimalFormat("TL#,##0.00");
	//private Calendar calendar;

	//constructor
	public Order(int orderId, int ssn) {
		setOrderId(orderId);
		setSsn(ssn);	
		setDate();
		setTime();
		setTotalPrice(0.0);
	}
	
	public Order(int orderId, int ssn, Date date, Date time, Double totalPrice){
		setOrderId(orderId);
		setSsn(ssn);
		setDate(date);
		setTime(time);
		setTotalPrice(totalPrice);
	}
	
	public Order(){
	}
	
	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public int getSsn() {
		return ssn;
	}

	public void setSsn(int ssn) {
		this.ssn = ssn;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(){
	      this.date = new Date();
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(){
		this.time = new Date();
	}
	public void setTime(Date time) {
		this.time = time;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}
	
}
